package cn.zhangxin.pethome.system.shop.domain;

import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.zhangxin.pethome.base.domain.BaseDomain;
import cn.zhangxin.pethome.system.employee.domain.Employee;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author zx
 * @since 2023-01-07
 */
@Data
public class Shop extends BaseDomain{

    private static final long serialVersionUID = 1L;

    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name = "电话号码" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @Excel(name = "店铺提交入驻时间" ,orderNum = "3", width = 30, isImportField = "true_st")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date registerTime;
    /**
     * 待审核 审核通过 驳回
     */
    @Excel(name = "审核状态" ,orderNum = "4",  replace = { "待审核_1", "待激活_2","激活成功_3","驳回_4"},width = 30, isImportField = "true_st")
    private Integer state;
    @Excel(name = "店铺地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name = "店铺logo" ,orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;
    @Excel(name = "管理员" ,orderNum = "7", width = 30, isImportField = "true_st")
    private Long adminId;

    //用于接收商家注册时，传入的店铺管理员对象
    private Employee admin;

    @Override
    public String toString() {
        return "Shop{" +
        ", name=" + name +
        ", tel=" + tel +
        ", registerTime=" + registerTime +
        ", state=" + state +
        ", address=" + address +
        ", logo=" + logo +
        ", adminId=" + adminId +
        "}";
    }
}
